package com.snail.constants;

/**
 * @author Monica
 */
public class SystemConstants {
    public static final String LOGIN_TYPE_PASSWORD = "PASSWORD";
    public static final String LOGIN_TYPE_PHONE = "PHONE";
    public static final String LOGIN_REFRESH_TOKEN = "refreshToken";

    public static final String TOKEN_SECRET_KEY = "USER_TOKEN"; //秘钥
    public static final long TOKEN_EXPIRE_TIME = 1000 * 60; //1分钟后token过期
    public static final String TOKEN_ISSUER = "issuer"; //签发人

    public static final String TOKEN_HEADER = "Authorization";

    // Token前缀（如Bearer，从配置读取）

    public static final String TOKEN_PREFIX = "Bearer";

    public static final String TEMP_DIR = System.getProperty("user.dir") + "/temp/";

    // 微信 code2session 接口地址
    public static final String CODE_2_SESSION_URL = "https://api.weixin.qq.com/sns/jscode2session?appid={appid}&secret={secret}&js_code={code}&grant_type=authorization_code";
}
